<template>
<!-- 操作按钮 -->
  <div class="add_btn">
    <a-button type="primary" @click="showDrawer()">新增</a-button>
    <a-button style="margin-left:20px;" :disabled="isDisabled" @click="batchDelete()">删除</a-button>
    <a-button style="margin-left:20px;" @click="exportExcel()">导出</a-button>
  </div>
</template>
<script>
export default {
  name: 'addBtn',
  props: {
    isDisabled: {
      type: Boolean,
      default: false
    },
  },
  methods: {
    showDrawer() {
      this.$emit('showDrawer')
    },
    batchDelete() {
      this.$emit('batchDelete')
    },
    exportExcel() {
      this.$emit('exportExcel')
    }
  }
}
</script>
<style lang="less" scoped>
.add_btn {
  margin-bottom: 10px;
}
</style>
